package com.example.lab2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


@Component
class applicationReadyEventListener implements ApplicationListener<ApplicationReadyEvent> {
    private static final Logger logger = LoggerFactory.getLogger(applicationReadyEventListener.class);
    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        logger.info(event.getClass().toString());
        System.out.println("ApplicationReadyEvent is start");
    }
}
